<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title_for_layout?></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<base href='<?php echo $this->Html->url('/')?>' />
<?php echo $this->Html->css('mainpage');?>
<?php echo $this->Html->css('personalbox');?>
<?php echo $this->Html->script('jquery');?>
<?php echo $this->Html->script('blog');?>
<?php echo $this->Html->script('jquery.form');?>

<!-- Include external files and scripts here (See HTML helper for more info.) -->
<?php echo $scripts_for_layout ?>
</head>

<body>
<!--上部导航-->
<div id = "welcome">
	<label>
		Welcome, <?php echo $this->Session->read('User.nickname');?>
		&nbsp;<label class="divideLine">|</label>&nbsp;
		<a href = "javascript:void(0)" id="personal">个人资料</a>
		&nbsp;<label class="divideLine">|</label>&nbsp;
		<?php echo $this->Html->link('注销',array('controller'=>'Users','action'=>'logout'))?>
		&nbsp;&nbsp;
	</label>
</div>
<div id = "branding">
	<div id="logo"><img src="img/logo.png" /></div>
	<label id="loadingTip">加载中...</label>
	<label id="faileLoad">抱歉,加载失败,请刷新页面</label>
	<label id="sstore">收藏成功</label>
	<label id="sshare">分享成功</label>
	<label id="sdelete">删除成功</label>
	<label id="fdelete">抱歉,删除失败,请刷新页面</label>
	<label id="sadd">添加成功</label>
	<label id="fadd">抱歉,添加失败,请刷新页面</label>
	<!--<div id="tips">
		<div id="arrow"></div>
		<center>
		<div id="tipsbox">您有新的订阅 100+</div>
		</center>
		<div><a id="close" href="javascript:void(0)"></a></div>
	</div>-->
</div>
<!--搜索-->
<div id = "search">
		<div id="seaBg">
			<?php echo $this->Form->input("search",array("label"=>false,"id"=>"searchinput","autocomplete"=>"off","value"=>"搜博客，搜标签，找人","maxlength"=>"40"))?>
			<button id = "searchBut" type="submit">搜索</button>
		</div>
		<div id="selectToSea">
			<div>请选择搜索的范围,默认为找人</div>
			<div id="seaBlog">含有"<label class="redLab"></label>"的博客</div>
			<div id="seaTag">含有"<label class="redLab"></label>"标签的博客</div>
			<div id="seaPerson">含有"<label class="redLab"></label>"的人</div>
		</div>
</div>
<!--主窗口-->
<div id="container">
	<!--左部导航-->
	<div id="reflash">
	<?php echo $this->element('mainNavigation');?>
	</div>
	<!--中间主内容-->
	<div id = "mainContent">
		<table id="maintable">
			<tr>
				<td id="itd">
					<div id="indent"></div>
				</td>
				
				<td id="fixedTd">
				<div id="wheader">&nbsp;&nbsp;写日志</div>
				<div id="fixedItem">
						<button id="lastOne">上一条</button>
						<button id="nextOne">下一条</button>
						<label id="itemLab">搜索"<label class="seaResTip"></label>"的结果</label>
						<div id="readForm">
							显示方式 : <label id="expand">展开</label> - <label id="list">收起</label>
						</div>
				</div>
				<div id="seaResTipDiv"><label>&nbsp;&nbsp;搜索"<label class="seaResTip"></label>"的结果</label></div>
				<div id="fixed">
					<?php echo $content_for_layout ?>
				</div>
				</td>
			</tr>
		</table>
	</div>
</div>
<!-- Add a footer to each displayed page -->
</body>
</html>
